package cn.laike.modules.dev.dao;

import cn.laike.modules.dev.entity.EarnestMoneyOrderEntity;

import java.util.List;

import org.springframework.data.repository.query.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * 押金记录
 * 
 * @author ziye
 * @email 524748907@qq.com
 * @date 2019-03-02 11:23:33
 */
public interface EarnestMoneyOrderDao extends BaseMapper<EarnestMoneyOrderEntity> {
	
	/**
	 * 获取我的押金
	 * @param openid
	 * @return
	 */
	Double getMyTotalMoney(@Param("openid") String openid);

	List<Double> statTotalMoney(@Param("uid") Long uid,@Param("hotelId") Integer hotelId,@Param("startTime") String startTime,@Param("endTime") String endTime);
}
